//
//  HWSearchMenuView.m
//  HappyWeekend
//
//  Created by lanou on 16/1/14.
//  Copyright © 2016年 com.mjykj.www. All rights reserved.
//

#import "HWSearchMenuView.h"

@implementation HWSearchMenuView


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.productButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        self.productButton.frame = CGRectMake(0, 0, kScreenWidth / 2, 30);
        [self addSubview:self.productButton];
        
        self.middleLineView = [[UIView alloc] initWithFrame:CGRectMake(kScreenWidth / 2, 0, 1, 30)];
        self.middleLineView.backgroundColor = [UIColor colorWithRed:0.f green:0.f blue:0.f alpha:0.3];
        [self addSubview:self.middleLineView];
        
        self.topicButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        self.topicButton.frame = CGRectMake(kScreenWidth / 2, 0, kScreenWidth / 2, 30);
        [self addSubview:self.topicButton];
        
        self.bottomLineView = [[UIView alloc] initWithFrame:CGRectMake(0, _productButton.height - 2, kScreenWidth / 2, 2)];
        self.bottomLineView.backgroundColor = [UIColor greenColor];
        [self addSubview:self.bottomLineView];
        
    }
    return self;
}


@end
